﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Server
{
    /// <summary>
    /// Поолная информация о товаре
    /// </summary>
    [DataContract]
    public class ProductFull
    {
        /// <summary>
        /// Id товара
        /// </summary>
        [DataMember]
        public long Id { get; private set; }

        /// <summary>
        /// Category identifier
        /// </summary>
        [DataMember]
        public int CategoryId { get; set; }

        /// <summary>
        /// Цена товара
        /// </summary>
        [DataMember]
        public decimal Price { get; set; }

        /// <summary>
        /// Product photo
        /// </summary>
        [DataMember]
        public string Photo { get; set; }

        /// <summary>
        /// Название товара
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// Описание товара
        /// </summary>
        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// Список полных url к изображениям галереи
        /// </summary>
        [DataMember]
        public List<string> Gallery { get; set; }

        /// <summary>
        /// Количество товара
        /// </summary>
        [DataMember]
        public int Count { get; set; }

        /// <summary>
        /// Конструктор
        /// </summary>
        /// <param name="id">Id товара</param>
        public ProductFull(long id)
        {
            Id = id;
        }
    }
}
